﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace modul3
{
    class cSysConstr
    {
        public class cMyConstraint 
        {
            /// <summary>
            /// 
            /// </summary>
            private string psNazov;

            public string sNazov
            {
                get { return psNazov; }
                set { psNazov = value; }
            }

            private kkConstraintType pkTyp;

            internal kkConstraintType kTyp
            {
                get { return pkTyp; }
                set { pkTyp = value; }
            }

            private List<int> paZdrojeoveStlpce;

            public List<int> aZdrojeoveStlpce
            {
                get { return paZdrojeoveStlpce; }
                set { paZdrojeoveStlpce = value; }
            }
            private List<int> paReferencovaneStlpce;

            public List<int> aReferencovaneStlpce
            {
                get { return paReferencovaneStlpce; }
                set { paReferencovaneStlpce = value; }
            }
        }

        public bool CreateCon(string pa_sNazov, kkConstraintType pa_kTyp, List<int> pa_aZrojoveStlpce, List<int> pa_aReferencovaneStlpce) 
        {
            return false;
        }

        public bool DropCon(cMyConstraint pa_cDroppedConstraint)
        {
            return false;
        }

        public kkConstraintType TestTyp()
        {
            return kkConstraintType.FK;
        }

        public List<int> ShowPK(int pa_tabulka)
        {
            return null;
        }
    }
}
